Test Case Generation Using Visual Contracts
نویسندگان
چکیده
Visual contracts provide a diagrammatic notation for preand postconditions as alternative to the Object-Constraint Language (OCL) or code-level contract languages. Using visual contracts for testing, we benefit from their executability and formal background in graph transformation to provide model-based test oracles and coverage criteria. Based on a static analysis of their dependencies and conflicts, in this paper we use visual contracts to generate test cases according to these coverage criteria. Together with previous work, this adds up to a comprehensive approach aiming to automate the three major challenges of testing through the use of models.
منابع مشابه
Test Case Generation for Visual Contracts Using AI Planning
In this paper, we propose a novel approach for computing test case preambles using visual contracts and AI Planning. In unit testing, preambles are required for setting the class under test into a controlled state (prestate). The class operation can then be invoked with test inputs. In previous research, we have used model checking for computing preambles. In this paper, we show how preamble co...
متن کاملEvaluating the Impact of Economic Components of IPC and PSC Contracts on Cumulative Production of Oil Fields: A Case Study of Foroozan Oil Field
Iran's new petroleum contract, dubbed as IPC, is a new generation of oil service contracts.The most significant flaw observed in various contracts is that cumulative profits and cumulative production do not necessarily follow the same direction, a kind of incompatibility arises between the interests of governments and contractors. In this research, using stochastic dynamic programming approach,...
متن کاملVisual Contracts as Test Oracle in AGG 2.0
A test oracle predicts expected outcomes for a set of test cases, often based on a formal, executable specification. Visual contracts are graph transformation rules describing preand post-conditions of a service’s operations. To obtain an oracle based on visual contracts, we use the Attributed Graph Grammar System (AGG) to execute the rules, creating a simulation of the behaviour expected of th...
متن کاملContract-Driven Testing of JavaScript Code
JSContest is a tool that enhances JavaScript with simple, type-like contracts and provides a framework for monitoring and guided random testing of programs against these contracts at the same time. Function contracts in JSContest serve a dual role as specifications of the input/output behavior and as test case generators. Generation of test data for a contract is principally random, but can be ...
متن کاملA New Model Considering Uncertainties for Power Market
Medium-term modeling of electricity market has essential role in generation expansion planning. On the other hand, uncertainties strongly affect modeling and consequently, strategic analysis of generation firms in the medium term. Therefore, models considering these uncertainties are highly required. Among uncertain variables considered in the medium term generation planning, demand and hyd...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- ECEASST
دوره 58 شماره
صفحات -
تاریخ انتشار 2013